{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 用户管理
    <span class="c-gray en">&gt;</span> 用户列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
            日期范围：
            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="datemin" class="input-text Wdate" style="width:120px;">
             -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="datemax" class="input-text Wdate" style="width:120px;">
            <input type="text" class="input-text" style="width:250px" placeholder="UID/账号" value="{:input('word')}" name="word">
            <input type="text" class="input-text" style="width:100px" placeholder="TOID/TO账号" value="{:input('toid')}" name="toid">
            <button type="submit" class="btn btn-success">搜索</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            <a href="javascript:;" onclick="emptys('chip_del')" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 清空</a>
        </span>
        <span class="r">共有数据：<strong>{$list|count}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="9">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="30">ID</th>
                <th width="50">UID/账号</th>
                <th width="100">筹码/筹码余额/使用积分</th>
                <th width="100">备注/订单</th>
                <th width="100">时间</th>
                <th width="100">操作</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.id}</td>
                <td>
                    {if $uname == $v['uname']}
                        {$v.uid} / {$v.uname}
                    {else/}
                        {$v.toid} / {$v.toname}
                    {/if}
                </td>
                <td>
                    {if $uname == $v['uname']}
                        {if $v['act'] == 2}
                            <span class="c-green">-{$v.num}</span>
                        {else/}
                            <span class="c-red">+{$v.num}</span>
                        {/if}
                    {else/}
                        <span class="c-red">+{$v.num}</span>
                    {/if}

                    / {$v.end_num}
                    /<span class="c-green"> - {$v.order_id['integral']|default=0}</span>
                    
                </td>
                <td>{$v.info} / {$v.order_id['order_id']}</td>
                <td>{$v.created}</td>
                <td>
                    <a title="编辑" href="javascript:;" class="btn btn-default radius" onclick="new_open('个人信息','{:url('edit')}')"><i class="Hui-iconfont">&#xe6df;</i></a>
                    <a title="删除" class="btn btn-danger radius" href="javascript:;" onClick="data_del(this,'{:url('delete')}','{$v.id}')"><i class="Hui-iconfont">&#xe6e2;</i></a>
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>

</div>

{include file="public/footer" /}